<%-- 
    Document   : post
    Created on : 26/07/2010, 11:16:13 AM
    Author     : gongz
--%>

<%@page contentType="text/html" pageEncoding="windows-1252"%>

<%@include file="taglib.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="css/style.css">
        <link rel="stylesheet" type="text/css" href="css/iefix.css">

        <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
        <title>Post your book</title>
    </head>
    <body>
        <div id="container">

            <div id="sys_details">
                <div id="course_code">
                    Course Code: <input type="text" class="text" id="course_code"/>
                </div>
                <!--course_details and course_books section only shows when DB has matched records-->
                <div id="course_details">
                    <table>
                        <tbody>
                            <tr>
                                <td class="table_label">Faculty:</td>
                                <td>UNSW@ADFA (Australian Defence Force Academy)</td>
                            </tr>
                            <tr>
                                <td class="table_label">School:</td>
                                <td>School of Engineering & Information Technology @ ADFA</td>
                            </tr>
                            <tr>
                                <td class="table_label">Course Name:</td>
                                <td>School of Engineering & Information Technology @ ADFA</td>
                            </tr>
                        </tbody>
                    </table>
                </div>
                <div id="course_books">
                    <table>
                        <tbody>
                            <tr>
                                <td class="table_label">Prescribed:</td>
                                <td><a href="#">International Financial Statement Analysis + Workbook VALUE</a></td>
                            </tr>
                            <tr>
                                <td class="table_label">Course Note:</td>
                                <td><a href="#">International Financial Statement Analysis + Workbook VALUE</a></td>
                            </tr>
                            <tr>
                                <td class="table_label">Recommended:</td>
                                <td><a href="#">International Financial Statement Analysis + Workbook VALUE</a></td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>

            <div id="ads_details">
                <html:form action="/post" method="post">
                    <div><html:hidden name="PostAdsBean" property="item_type" value="book"/></div>
                    <div><html:hidden name="PostAdsBean" property="course_code" value=""/></div>
                    <!--book info-->
                    <table id="book_table" cellspacing="10">
                        <tbody>
                            <tr>
                                <td class="table_label">Book Name:</td>
                                <td><html:text name="PostAdsBean" styleId="ads_book_name" styleClass="text" property="book_name" /></td>
                                <td class="cell_required">*</td>
                            </tr>
                            <tr>
                                <td class="table_label">Author:</td>
                                <td><html:text name="PostAdsBean" styleId="ads_book_author" styleClass="text" property="book_author" /></td>
                                <td class="cell_required">*</td>
                            </tr>
                            <tr>
                                <td class="table_label">Edition:</td>
                                <td><html:text name="PostAdsBean" styleId="ads_book_edition" styleClass="text" property="book_edition" /></td>
                                <td></td>
                            </tr>
                            <tr>
                                <td class="table_label">Publisher:</td>
                                <td><html:text name="PostAdsBean" styleId="ads_book_publisher" styleClass="text" property="book_publisher" /></td>
                                <td></td>
                            </tr>
                            <tr>
                                <td class="table_label">Type:</td>
                                <td><html:text name="PostAdsBean" styleId="ads_book_type" styleClass="text" property="book_type" /></td>
                                <td></td>
                            </tr>
                            <tr>
                                <td class="table_label">ISBN:</td>
                                <td><html:text name="PostAdsBean" styleId="ads_book_isbn" styleClass="text" property="book_isbn" /></td>
                                <td class="cell_required">*</td>
                            </tr>
                            <tr>
                                <td class="table_label">Retail Price:</td>
                                <td><html:text name="PostAdsBean" styleId="ads_book_retail_price" styleClass="text" property="book_full_price" /></td>
                                <td></td>
                            </tr>
                        </tbody>
                    </table>
                    <!--seller info-->
                    <table id="ads_table" cellspacing="10">
                        <tbody>
                            <tr>
                                <td class="table_label">Seller's Name:</td>
                                <td><html:text name="PostAdsBean" styleId="ads_seller_name" styleClass="text" property="seller_username" /></td>
                                <td></td>
                            </tr>
                            <tr>
                                <td class="table_label">Contact:</td>
                                <td><html:text name="PostAdsBean" styleId="ads_seller_contact" styleClass="text" property="ads_contact" /></td>
                                <td class="cell_required">*</td>
                            </tr>
                            <tr>
                                <td class="table_label">Price:</td>
                                <td><html:text name="PostAdsBean" styleId="ads_seller_price" styleClass="text" property="ads_price" /></td>
                                <td class="cell_required">*</td>
                            </tr>
                            <tr>
                                <td class="table_label">Other:</td>
                                <td><html:text name="PostAdsBean" styleId="ads_seller_other" styleClass="text" property="ads_misc" /></td>
                                <td></td>
                            </tr>
                        </tbody>
                    </table>
                    <html:submit value="Submit" styleId="ads_submit" />
                </div>
            </html:form>
        </div>
        <div class="clear"></div>
    </body>
</html>
